Update registration.php

Added checks for lengths and valid username and passwords.