login.cs changes for authentication