added forgot password function for member area, code cleanup