Fix for Error saving user profile when use email as username is set.

Username validation is false by default. If the username state variable
is not set check to see if the current user is logged in and NOT guest.
If user is logged in AND username state variable is not set then
username validation is set to true.

Fix for Issue #26