Worked on register, refactored errorMessages and localization