Validates User Input.

Checks if key is invalid or username is taken. If either are true, then
a corresponding error is returned. Otherwise user is directed to login
page, so they can login with their new credentials.