Implemented peer password verification. Fixed some issues in register.