Fix saving empty password