fixed password box and message sorting