Login auth check, and login form now working