FIXED THE ERRORS. got the login and register to work