erroneously set null to authData after authentication

Signed-off-by: Connie Leung <cleung334@gmail.com>
1) Set pristine state of form controls. 2) Use promise to wait for completion of set operation and clear form control.

Signed-off-by: Connie Leung <cleung334@gmail.com>