Login with permissions check