01.06.2015, 17:37
I remember having this issue as well and it had something to do with the 'accounts' table design. Check each field and make sure it is properly set up. If its still causing problems check the login/register functions and debug it with print functions.