added password confirmation/checking before saving to database