Finally fixed login with decorators