One test that you could try is to manually add the user into the database and then trying to login using that user that you generated. This will help determine if the connection is successfully being made to the database. Also, can you provide a link to the pages so I can try the behavior myself?