changed query method find -> find_by_id

find (:id) method ommits error when User which has :id doen't exist.