Finish most part of user login function.