Fixed Authentication and Login Bugs

Working login and authentication