added check for User class existence
added check for User class existence