adding password recovery function in index