MemberForgotPassword.ascx - errors


When I was using the MemberForgotPassword.ascx file it kept giving errors. Both if it was configured wrongly and not. It also failed because no from address was entered.
Additionally if the username entered didn't exist, then this also resulted in an error.
Finally I wanted it to be optional if the password should be reset or not. I don't like to reset it, when the user cannot change it himself.
Attached please find my version of the files.

file attachments