implemented login with user