We need to include HTML header only if we are not inside exception, since otherwise standard_error_message will include header. Login

Login failed!

">
Username:
Password: