Fix validatePassword function to check against hashed password input
Implement working account registration