Added registration, refactored forms, fixed validation