Add saving of login details to separate file.