added ajax signup/ login, including passing validation errors as json when not ok. Still needs hooking validation errors to gui