Authentication

Made two commits, both regarding registration field verifications. Please let me know if I did this commit/pull request properly.