Fixed a bug where user credentials are still saved when the save credential check box has been unchecked. Made an attempt to decouple the login async task and the handler for the task.