Some refactoring, dummy login deny