Removed prevent default
Additional empty string check for username prompt