Use message_inline functions instead of manually constructing alert html
Nicer footer
Separated post action from display for password reset
Use db_select, db_query instead of constructing queries directly