improve render login form, should remember username after submit