Use find_by method instead of where.first