Implement secure password and registration