Solved errors in forgot password recovery function