R Madhavan to play villain