Made $alert variable more extensible through use of apply_filters() function

This allows the html markup to be altered to developer's liking, as well as the actual alert message text, including CSS class names that need to be modified or added to.
Added else condition to set $first name and $last name to nothing

Fixes 2 Undefined variable notices and "cannot modify header information" warning
Fixed merge conflict