fixed apply route and added mail
fixed secure settings