added the login function
remove the cancel button and center it