Use WTForms as server-side form library.  Build out Euca login form with server validation.