fixed issues in SignUp and added debug info