Move user related func to different file for clarity