Added some more validations, value_not and type, and added lastUser and lastUserId functions in User class, and made changes in crete function by returning object.