Finish login functionality.