angularjs registration form working for user and owner