Have working _login function