Fix errors on registration page and add in code to get username verification working