resolved error, edit password user and teacher without password nil