Username and password tests now pass. Fieldvalidation
changed to fix errors found while testing.