hooked up the login button with function.