User not found error was not handled properly