got errors to work in registration and login now. Need to edit login to check database for actual user, and check registration for existing user