This function returns a pointer with one of the following values:
After the user successfully logs in.
If there was an error or the user has not successfully logged in.