Adding disable logic for buttons.

Updated tests and introduced common toggle disable approach for registration and login. 
This is for ECOM-641
@AlasdairSwan @wedaly
Shouldn't this just be in the else condition for toggleErrorMsg?