AngularJS login, using the famous modular approach