Raising proper error on trying to log in to active session