auth pages with validation

Have two new pages: signin and signup. When submit form with empty
fields or fields with wrong data - show error messages and highlight
this fields. When all is ok just show success alert. Need test, but
don't know how..