Authentication and login is now working properly