Inline form error messages

I've been searching for a solution to inline form error messages without using a plugin.

For example, for the Email field, this is what I came up with...