added route to check that api is properly secured. added mongoose dependency