Password control in registration form

Password length must be greater than 8 chars, if not facebook ajax call return error 500.