Integrated frontend signup with backend. Also better error handling