Allow any origin on auth handler
Refactored register to a directive
Added input validation to register form