Saves user information if the user is logged in; will eventually take out "if user is logged out" code.