Auto Username

Takes first letter of first name and full last name.
Joins any spaces in last name
Will take second letter of first name if username already exists.

On create revert to index page with alert.
Doesn't work.

Want to use email alert.