Updated checkUser function to return correct type for Railo