Tab resets when back to login page