Using a directive to validate form data

Now that we have the profile taken care of, let's make a directive for
the registration page for checking if the username is already taken or
contains invalid firebase characters.