Detects Submit Type and Thanks Users