added getUserByUid function to users.php