Adding get user info function.