Fixing issue with login/registration not working