use find_by instead. where doesnt seem to return nil