Man gets arrested for hugging a police officer