prevented submission of anchor tags (#) in url