Adding disable logic for buttons.

Updated tests and introduced common toggle disable approach for registration and login. 
This is for ECOM-641
@AlasdairSwan @wedaly
Why is this variable being exposed outside of this function? Should be able to make it local the same way the default FormView postRender function does.