Added localStorage for saving username and password.