Throw exception if username exists during registration process.