add flash messages and tooltip for password