add email login validation and fix meal query