updated signup function to test in post array