changing user not found status from 500 to 404.