Use 'controller as' in login form, add tests

Closes item:90, item:91