Everything is working properly but last condition is not satisfied.