fix empty password for apply