login problem fixed & identation fix

This fix the bug that appears when someone try to access to a store protected with an access code. You will be redirected to the access code view even entering the correct access code.