added functionality of the login page