Fixed registration form javascript validation. There's room for improvement.