Updated Login Screen Fuction