Adding disable logic for buttons.

Updated tests and introduced common toggle disable approach for registration and login. 
This is for ECOM-641
@AlasdairSwan @wedaly
oh, odd, don't know how this got copied over here.