Fixed sesskey check