How to check user typed email is exist in database or not and raise a validationError?

Please reply on this thread if you know:- how can I also show stock message with there location like “Added %s items to stock with %s location”?