Log in function complete.