On line 11 you have an extra end
statement.
def new
self.resource = resource_class.new(sign_in_params)
clean_up_passwords(resource)
respond_with(resource, serialize_options(resource))
end ### <--- this is the line that's causing your error
end