You should also check if mechanic was not actually logged in, like there is no logout link or something.