working auth and link submit