cleaning up/standardizing code. added rule to htaccess to allow reset_password use