angular sign up controller functionality implemented