added validation to username attr to disallow spaces and created a method that cleans up whitespace on either side of username
merge error