fixed issue with application loading

qt5 has different behaviour and the instance of core application must be created before anything else
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.