Add check for inactive user in login functionality