save login method to storage