finish the function of showing the error on  sign_up page