add the code for login window