Fixed possible error if user used more than one @ symbol. Checks for
length of string after username is split.
Fixed possible error in constraints with the username check and multiple
@ symbols.