changed some identation and added the scope of the login view