Added more security to routes