refactored Registration class to User