Check if user is active before logging in