memory leak in login form

when you aborted the login during progress of some longer queries, the query might not be deleted and later, on second login overriden with new one.