Removed old code
Removed un-required code
Removed some useless arguments
Improved the prefill method of the login panel
Added extra check when trying to cancel an ongoing authentication
Added the connection field