Adding function to update user info