made progress with login/signup module. improved API to return structured error information on signup failures