Login_page.php: Ensure username is valid

This is a fix to improve the behaviour of login_page against possible
XSS exploits to ensure that a username is valid before displaying it
back to the user when entered.

Fixes #17338

Signed-off-by: Damien Regad <dregad@mantisbt.org>