Stopped double error message

When creating a new user, if enter was pressed in certain text fields,
multiple error messages would pop up as per ticket #241. The function
causing the problem has been removed.