Added a user check function