Fixed register form

Updated register form to use the correct table name. Also added
functionality to determine if a username is already taken.