Add strict policy and hide keyboard